package com.youi.service;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.apache.ibatis.annotations.Param;

import com.youi.entity.vo.Userorderrecord;

public interface UserorderrecordService {

	/**
	 * 查询总资金流水报表
	 * @param start 
	 * @param end	
	 * @param merWithStart	
	 * @param merWithEnd
	 * @param platWithStart
	 * @param platWithEnd
	 * @param orderNo
	 * @param merchantPms
	 * @param goodsPms
	 * @param goodsIds
	 * @param phone
	 * @param leaderId
	 * @param receStart
	 * @param receEnd
	 * @param unfreezeStart
	 * @param unfreezeEnd
	 * @param status
	 * @param pageIndex
	 * @param pageNum
	 * @return
	 */
	public List<Userorderrecord> getUserorderrecordList(Long merchantId,String start,String end,String merWithStart,String merWithEnd,String platWithStart,
			String platWithEnd,String orderNo,String merchantPms,String goodsPms,String goodsIds,String phone,Long leaderId,String receStart,
			String receEnd,String unfreezeStart,String unfreezeEnd,Integer status,Integer platformStatus, Integer merchantStatus,Integer pageIndex, Integer pageNum);
	
	/**
	 * 查询总资金流水报表总数
	 * @param start
	 * @param end
	 * @param merWithStart
	 * @param merWithEnd
	 * @param platWithStart
	 * @param platWithEnd
	 * @param orderNo
	 * @param merchantPms
	 * @param goodsPms
	 * @param goodsIds
	 * @param phone
	 * @param leaderId
	 * @param receStart
	 * @param receEnd
	 * @param unfreezeStart
	 * @param unfreezeEnd
	 * @param status
	 * @param pageIndex
	 * @param pageNum
	 * @return
	 */
	public Integer getUserorderrecordCount(Long merchantId,String start,String end,String merWithStart,String merWithEnd,String platWithStart,
			String platWithEnd,String orderNo,String merchantPms,String goodsPms,String goodsIds,String phone,Long leaderId,String receStart,
			String receEnd,String unfreezeStart,String unfreezeEnd,Integer status,Integer platformStatus, Integer merchantStatus);
	
	/**
	 * 获取商品id
	 * @param goodsPms
	 * @return
	 */
	public String getGoodsIds(String goosTypeNo);
	
	/**
	 * 获取资金流水报表
	 * @param userorderrecordList
	 */
	public void getUserorderrecordMsg(List<Userorderrecord> userorderrecordList);
	

	 /**
	  * 导出资金流水报表excel
	  * @param request
	  * @param userorderrecordList
	  * @return
	  */
	public String toExcelUserorderrecord(HttpServletRequest request,List<Userorderrecord> userorderrecordList);
}
